package com.ruoyi.system;

import java.lang.reflect.Method;

public class M2 {

    public static void main(String[] args) throws NoSuchMethodException, ClassNotFoundException {

        Class<String> stringClass = String.class;

        Method[] declaredMethods = stringClass.getDeclaredMethods();

        Class<Object[]> aClass = Object[].class;
        Method format = stringClass.getDeclaredMethod("format", String.class, aClass);

        System.out.println(aClass.toString());

        Class<?> aClass1 = Class.forName("[java.lang.Object");

        System.out.println();

    }

}
